package com.lcxw.hxzb.friendcircle.project.system.service;

import java.util.List;
import com.lcxw.hxzb.friendcircle.project.system.domain.YwpdDynamic;

/**
 * 用户动态Service接口
 *
 * @author jjp
 * @date 2020-07-20
 */
public interface IYwpdDynamicService {

    /**
     * 查询用户动态
     *
     * @param dynamicId 用户动态ID
     * @return 用户动态
     */
    public YwpdDynamic selectYwpdDynamicById(Long dynamicId);

    /**
     * 查询用户动态列表
     *
     * @param ywpdDynamic 用户动态
     * @return 用户动态集合
     */
    public List<YwpdDynamic> selectDynamicList(YwpdDynamic ywpdDynamic);

    /**
     * 新增用户动态
     *
     * @param ywpdDynamic 用户动态
     * @return 结果
     */
    public int insertYwpdDynamic(YwpdDynamic ywpdDynamic);

    /**
     * 修改用户动态
     *
     * @param ywpdDynamic 用户动态
     * @return 结果
     */
    public int updateYwpdDynamic(YwpdDynamic ywpdDynamic);

    /**
     * 批量删除用户动态
     *
     * @param dynamicIds 需要删除的用户动态ID
     * @return 结果
     */
    public int deleteYwpdDynamicByIds(Long[] dynamicIds);

    public int deleteDynamicById(Long dynamicId);

    /**
     * 删除用户动态信息
     *
     * @param dynamicId 用户动态ID
     * @return 结果
     */
    public int deleteYwpdDynamicById(Long dynamicId);


    public int querylistsByUser(YwpdDynamic ywpdDynamic);

    // 物品    点赞likes + 1
    public int insertLikeByUser(YwpdDynamic ywpdDynamic);

    // 物品取消点赞likes - 1
    public int deleteLikeByUser(YwpdDynamic ywpdDynamic);

    public int insertCommentsByUser(YwpdDynamic ywpdDynamic);

    public int deleteCommentsByUser(YwpdDynamic ywpdDynamic);

    public Long queryCommentsByChild(YwpdDynamic ywpdDynamic);

    public int updateViewsByUser(YwpdDynamic ywpdDynamic);

    public List<YwpdDynamic> selectFreindList(YwpdDynamic ywpdDynamic);

    public List<YwpdDynamic> selectNearbyList(YwpdDynamic ywpdDynamic);

    void insertYwpdDynamicList(List<YwpdDynamic> list);

    YwpdDynamic queryAllUser(String userId);

    List<YwpdDynamic> queryAllCommentByUserId(YwpdDynamic ywpdDynamic);
}
